<!--
 * @Author: your name
 * @Date: 2021-12-13 19:38:22
 * @LastEditTime: 2021-12-13 20:30:41
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \day6vue\my-app\src\components\Vinput.vue
-->
/<template>
  <input
    type="text"
    class="inputs"
    :value="value"
    @input="changeInput"
    :placeholder="place"
  />
</template>

<script>
export default {
  props: {
    value: {
      type: String,
      require: true,
    },
    place: {
      type: String,
      require: true,
    },
  },
  methods: {
    changeInput(e) {
      this.$emit("input", e.target.value);
    },
  },
  mounted() {},
};
</script>

<style lang="scss" scoped>
.inputs {
  height: 40px;
  flex: 1;
  border: none;
  border-bottom: 1px solid #ccc;
  margin: 0px 10px;
}
</style>